<template>
	<view v-if='blogs'>
		<view class="">{{blogs[id].Title}}</view>
		
		<view class="">{{blogs[id].Content}}</view>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:"",
				blogs:''
			}
		},
		onLoad(event){
			this.id=event.id;
			uni.request({
				url: 'http://127.0.0.1:8000/news_list/',
				method: 'GET',
				data: {},
				success: res => {
					console.log(res.data);
					this.blogs =res.data;
					
					},
				fail: () => {},
				complete: () => {}
			});
			
		}
		
		}
	
</script>

<style>

</style>
